package net.youyi.crazycopyer.common;

import android.content.Context;
import android.graphics.Bitmap;

import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
import com.bumptech.glide.load.resource.bitmap.BitmapTransformation;

/**
 * Created by xzp on 16/4/12.
 */
public class BlurTransformation extends BitmapTransformation{
    public BlurTransformation(Context context) {
        super(context);
    }

    @Override
    protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) {
        return FastBlur.doBlur(toTransform,16,false);
    }

    @Override
    public String getId() {
        return "net.youyi.crazycopyer.common.BlurTransformation";
    }
}
